import request from '@/utils/request'

// 查询预警信息发布列表
export function listSysEmergencyWarning(query) {
    return request({
        url: '/emergency/sysEmergencyWarning/list',
        method: 'get',
        params: query
    })
}

// 查询预警信息发布详细
export function getSysEmergencyWarning(waringId) {
    return request({
        url: '/emergency/sysEmergencyWarning/' + waringId,
        method: 'get'
    })
}

// 新增预警信息发布
export function addSysEmergencyWarning(data) {
    return request({
        url: '/emergency/sysEmergencyWarning',
        method: 'post',
        data: data
    })
}

// 修改预警信息发布
export function updateSysEmergencyWarning(data) {
    return request({
        url: '/emergency/sysEmergencyWarning',
        method: 'put',
        data: data
    })
}

// 删除预警信息发布
export function delSysEmergencyWarning(waringId) {
    return request({
        url: '/emergency/sysEmergencyWarning/' + waringId,
        method: 'delete'
    })
}
